package com.itheima.sh.config;

import com.itheima.sh.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)//默认true检查容器是否有这个bean，有就直接用，false为每调用一次Spring，就会创建一个新bean
public class MyConfig {
    @Bean
    public User getUser(){
        return new User();
    }
}
